<?php
session_start();

header('Content-Type: text/plain; charset=utf-8'); 

require("../fantasmatakia/pektis.php");
require("../lib/standard.php");

$globals->check_pektis();
$partida = Globals::parametros("partida");

$query = "INSERT INTO `isodos` (`pektis`, `partida`) VALUES ('" .
	$globals->pektis->login . "', " . $partida . ")";
@mysqli_query($globals->db, $query);

if (mysqli_affected_rows($globals->db) == 1) {
	die(0);
}

if (mysqli_errno($globals->db) == 1062) {
	die(0);
}

die("SQL error: " . mysqli_error($globals->db));

?>
